#元组操作3
def p(p):
	print(p)

t1 = ('sad','阿斯达','阿萨德','额我是','爱仕达')

#for in
for t in t1:
	p(t)			#单个输出每个值
p('=======')
#while遍历
i = 0
while i<len(t1):
	p(t1[i])
	i+=1

#多级元祖的遍历
t2 = (
		('1','张三','女','20'),
		('2','李四','男','24'),
		('3','王五','女','27'),
		('4','赵六','男','29')
	)
# p(t2)
# for i in t2:
# 	for j in i:
# 		p(j)

for bh,name,sex,age in t2:
	print(bh,name,sex,age)
	
#while 遍历

n = 0
while n<len(t2):
	# print(t2[n])
	j= 0
	while j < len(t2[n]):
		print(t2[n][j])
		j+=1
	n+=1 